Quantum Turing machine